package com.ruoyi.hospital.mapper;

import com.ruoyi.common.core.domain.hospital.*;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MrInLabMapper {

    public int saveMrInLab(MrInLab mrInLab);

    @Delete("delete from hp_MrInLab where onlyId = #{onlyId}")
    public int deleteMrInLab(String onlyId);

    public int saveMrInspection(MrInspection mrInspection);

    @Delete("delete from hp_mrinspection where onlyId = #{onlyId}")
    public int deleteMrInspection(String onlyId);

    @Delete("delete from hp_mrinbaisc where onlyId = #{onlyId}")
    public int deleteMrInBaisc(String onlyId);

    @Delete("delete from hp_mrindiagnoss where id = #{onlyId}")
    public int deleteMrInDiagnoss(String onlyId);

    @Delete("delete from hp_mrinoperation where id = #{onlyId}")
    public int deleteMrInOperation(String onlyId);

    @Delete("delete from hp_mrinorder where id = #{onlyId}")
    public int deltetMrInOrder(String onlyId);

    @Delete("delete from hp_mrinphysicalsign where id = #{onlyId}")
    public int deltetMrInPhysicalsign(String onlyId);

    @Delete("delete from hp_mrinrecord where id = #{onlyId}")
    public int deltetMrInrecord(String onlyId);

    @Delete("delete from hp_mrinleave where id = #{onlyId}")
    public int deltetMrInLeave(String onlyId);

    @Delete("delete from hp_mrinprogressnote where id = #{onlyId}")
    public int deltetMrInProgressnote(String onlyId);

    public int saveMrInBaisc(MrInBaisc mrInBaisc);

    public int saveHpMrindiagnoss(MrInDiagnoss mrInDiagnoss);

    public int saveHpMrinoperation(MrInOperation mrInOperation);

    public int saveHpMrinorder(MrInOrder mrInOrder);

    public int saveHpMrinphysicalsign(MrInPhysicalsign mrInPhysicalsign);

    public int insertHpMrinprogressnote(MrInProgressnote mrInProgressnote);

    public int saveHpMrinrecord(MrInRecord mrInRecord);

    public int insertHpMrinleave(MrInLeave mrInLeave);

    @Select("select * from hp_mrinbaisc where onlyId = #{onlyId}")
    public MrInBaisc queryMrInBaisc(String onlyId);

    @Select("select * from hp_mrinrecord where id = #{onlyId}")
    public MrInRecord queryMrInRecord(String onlyId);

    @Select("select * from hp_mrinleave where id = #{onlyId}")
    public MrInLeave queryMrInLeave(String onlyId);

    @Select("select * from hp_mrindiagnoss where id = #{onlyId}")
    public List<MrInDiagnoss> queryMrInDiagnoss(String onlyId);

    @Select("select * from hp_mrinoperation where id = #{onlyId}")
    public List<MrInOperation> queryMrInOperation(String onlyId);

    @Select("select * from hp_mrinorder where id = #{onlyId}")
    public List<MrInOrder> queryMrInOrder(String onlyId);

    @Select("select * from hp_mrinphysicalsign where id = #{onlyId}")
    public List<MrInPhysicalsign> queryMrInPhysicalsign(String onlyId);

    @Select("select * from hp_mrinprogressnote where id = #{onlyId}")
    public List<MrInProgressnote> queryMrInProgressnote(String onlyId);

    @Select("select * from hp_mrinlab where onlyId = #{onlyId}")
    public List<MrInLab> queryMrInLab(String onlyId);

    @Select("select * from hp_mrinspection where onlyId = #{onlyId}")
    public List<MrInspection> queryMrInspection(String onlyId);
}
